<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<title>CreateSprint</title>		
		<link rel="stylesheet" type="text/css" href="${ pageContext.request.contextPath }/css/common.css">
		<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
		<script type="text/javascript" src="${ pageContext.request.contextPath }/js/jquery-1.6.2.js"></script>
		<script type="text/javascript" src="${ pageContext.request.contextPath }/js/jquery-ui-1.8.18.custom.min.js"></script>
		<script type="text/javascript">
		$(document).ready(function() {
		    $( "#sttm" ).datepicker({showButtonPanel: true});
		    $( "#endtm" ).datepicker({showButtonPanel: true});
		});
		</script>
	</head>
<body>
	<s:form name="addSprint" action="addSprint" method="POST"
		theme="simple">
		<s:hidden name="projectId" value="%{projectId}" />
		<fieldset>
			<legend>阶段</legend>
			<table id="sprint_tb">
				<tr>
					<td><s:label>阶段名称：</s:label> <s:textfield name="sprint.name"></s:textfield>
					</td>
				</tr>
				<tr>
					<td>
						<s:label>开始时间：</s:label> 
						<s:textfield name="sprint.start_time" id="sttm"></s:textfield>
					</td>
					<td>
						<s:label>结束时间：</s:label>
					    <s:textfield name="sprint.end_time" id="endtm"></s:textfield>
				    </td>
				</tr>
				<tr>
					<td><s:label>阶段状态：</s:label> <s:textarea name="sprint.status"></s:textarea>
					</td>
				</tr>

				<tr>
					<td><s:submit value="提交"></s:submit></td>
				</tr>
			</table>
		</fieldset>
	</s:form>
</body>
</html>